<?php
  /* Product class for kunuki */
class Brand extends database {                          
  var $details = "";                                       
  var $brand_id;                                         /* product id */
  var $brand_ui_sequence;                                         /* product id */
  var $status;
  var $path;
  var $title;
	var $name;
  var $mysqlConn;
  var $database;  
	var $category;  
	function __construct() {                                 /* Create the constructor of the class */
		$this->mysqlConn = parent::__construct();
	}

	function get_brand()
	{
    return parent::get_records("select * from brand");
	}

	function get_brand_where($where)
	{
    return parent::get_records("select * from brand ".$where);
	}
  
  function get_brand_with_category()
	{
    return parent::get_records("select * from brand where category = '".$this->category."'");
	}
}
?>